//
//  AppDelegate+Config.m
//  XKJY
//
//  Created by 小康100 on 2017/3/8.
//  Copyright © 2017年 xiaokang100. All rights reserved.
//



#define BUGTAGS_APPKEY_DUBUG        @"3e22e705242c04e4ddf07151b08892db"
#define BUGTAGS_APPKEY_RELEASE      @"8ebc57fab6f2ba38b5aa3b42159410f6"

#import "AppDelegate+Config.h"

@implementation AppDelegate (Config)

#pragma mark - 整理
- (void)configs {
    [self configSVProgressHUD];
    [self configIQKeyboard];
    [self configPPNetwork];
    [self checkNewVersion];
}

#pragma mark - 检查App更新
- (void)checkNewVersion {
    //更新提示
    [iVersion sharedInstance].applicationBundleID = [[NSBundle mainBundle] bundleIdentifier];
    //设置提示按钮的样式
    [iVersion sharedInstance].updatePriority = iVersionUpdatePriorityMedium;
}

#pragma mark - HUD相关配置
- (void)configSVProgressHUD {
    [SVProgressHUD setInfoImage:nil];
    [SVProgressHUD setMinimumDismissTimeInterval:3];
    [SVProgressHUD setMaximumDismissTimeInterval:3];
    [SVProgressHUD setDefaultStyle:SVProgressHUDStyleDark];
//    [SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeClear];
}

#pragma mark - 网络请求延时设置
- (void)configPPNetwork {
    [PPNetworkHelper closeLog];
    [PPNetworkHelper setRequestTimeoutInterval:10];
}


#pragma mark - 键盘外部点击结束编辑
- (void)configIQKeyboard {
    [IQKeyboardManager sharedManager].shouldResignOnTouchOutside = YES;
}


@end
